// 楼栋
import {
    ajaxP,
    ajaxBack
} from '@/utils/data/request'

export function list(params: any) {
    return ajaxBack({
        url: `build/list`,
        method: 'post',
        data: params
    })
}

export function add(param: any) {
    return ajaxP('build/create', param)
}

export function edit(param: any) {
    return ajaxP('build/edit', param)
}

export function del(build_sn: any) {
    return ajaxP('build/delete', { build_sn })
}

export function tree() {
    return ajaxP('build/tree')
}